import axios from "axios";
const mockAxios = axios.create({
    baseURL:"/mock",
    timeout:10000
})

mockAxios.interceptors.request.use(function(config){
    return config;
})
mockAxios.interceptors.response.use(function (response) {
    // 对响应数据做点什么
    return response.data;
}, function (error) {
    // 对响应错误做点什么
    return Promise.reject(error);
});

export default mockAxios